<template>
  <el-container class="title-box">
    <div class="title-text">
      <span class="icon"></span>
      <slot name="title"></slot>
    </div>
    <div class="button-box">
      <slot name="button"></slot>
    </div>
  </el-container>
  <section class="my-16px">
    <slot name="content"></slot>
  </section>
</template>
<script></script>
<style lang="scss" scoped>
.title-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f3f5;
  font-size: 14px;
  padding: 0 20px;
  height: 40px;
  .icon {
    position: relative;
    display: inline-block;
    width: 2px;
    height: 16px;
    top: 3px;
    right: 2px;
    background: #409efe;
  }
  .title-text {
    font-weight: bold;
  }
  .button-box {
    cursor: pointer;
    color: #409efe;
  }
}
</style>
